package observer;

public class Main {

    public static void main(String args[]) {
        Boss huhansan = new Boss();
        StockObserver michel = new StockObserver("michel", huhansan);
        StockObserver jane = new StockObserver("jane", huhansan);
        huhansan.attach(michel);
        huhansan.attach(jane);

        huhansan.detach(michel);
        huhansan.setSubjectState("我胡汉三回来了！");
        huhansan.inform();
    }
}
